package org.example.event;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;

@Configuration
@EnableAsync
public class EventConfig {

    @Bean
    @Qualifier
    public Runnable javaEventTest() {
        return new JavaEventTest();
    }

    @Bean
    @Qualifier
    public Runnable springEventTest() {
        return new SpringEventTest();
    }
}
